package services

import "app_log_server/app"

type projectData struct {
	ID   int
	Name string
	Age  int
}

func GetProjectList(page_index uint) ([]projectData, error) {
	var project_list []projectData
	db := app.GetDB()
	err := db.Raw("SELECT * FROM projects").Scan(&project_list).Error
	return project_list, err

}
